home *** CD-ROM | disk | FTP | other *** search
- #!/usr/bin/env python
-
- #
- # This file is part of OpenVIP (http://openvip.sourceforge.net)
- #
- # Copyright (C) 2002-2003
- # Michal Dvorak, Jiri Sedlar, Antonin Slavik, Vaclav Slavik, Jozef Smizansky
- #
- # This program is licensed under GNU General Public License version 2;
- # see file COPYING in the top level directory for details.
- #
- # $Id: list_plugins.py,v 1.4 2003/05/24 22:17:23 vaclavslavik Exp $
- #
-
- #
- # Lists all registered OpenVIP plugins
- #
-
- import openvip
-
- def printList(lib, type, desc):
- plugins = lib.enum_plugins(type)
- if len(plugins) == 0:
- print "No %s vailable" % desc
- else:
- print "%i %s available:" % (len(plugins), desc)
- for p in plugins:
- print " %-30s (%s)" % (p.description, p.name)
- print ""
-
- lib = openvip.Library()
-
- printList(lib, openvip.PLUGIN_VIDEO_FILTER, "video filters")
- printList(lib, openvip.PLUGIN_AUDIO_FILTER, "audio filters")
- printList(lib, openvip.PLUGIN_VIDEO_TRANSITION, "video transitions")
- printList(lib, openvip.PLUGIN_AUDIO_TRANSITION, "audio transitions")
- printList(lib, openvip.PLUGIN_INPUT, "input formats")
- printList(lib, openvip.PLUGIN_OUTPUT, "output formats")
-
-